<!DOCTYPE html>
<html>
<head>
    <title>奖励金支付比例和分类关系表</title>
		<#include "/header.html">
</head>
<body>
<div id="rrapp" v-cloak>
    <div v-show="showList">
        <div class="grid-btn">
			<#if shiro.hasPermission("goodsCategoryScholarship:goodscategoryscholarship:save")>
            <a class="btn btn-primary btn-sm" @click="add"><i class="fa fa-plus"></i>&nbsp;新增</a>
			</#if>
			<#if shiro.hasPermission("goodsCategoryScholarship:goodscategoryscholarship:update")>
            <a class="btn btn-primary btn-sm" @click="update"><i class="fa fa-pencil-square-o"></i>&nbsp;修改</a>
			</#if>
			<#if shiro.hasPermission("goodsCategoryScholarship:goodscategoryscholarship:delete")>
            <a class="btn btn-primary btn-sm" @click="del"><i class="fa fa-trash-o"></i>&nbsp;删除</a>
			</#if>
        </div>
        <table id="jqGrid"></table>
        <div id="jqGridPager"></div>
    </div>

    <div v-show="!showList" align="center" class="panel panel-default">
        <div class="panel-heading">{{title}}</div>
        <form class="form-horizontal">
            <div class="form-group">
                <div class="col-sm-2 control-label">分类ID</div>
                <div class="col-sm-10">
                    <input class="form-control input-sm" readonly="readonly" type="hidden" v-model="goodsCategoryScholarship.categoryId" placeholder="分类ID"/>
                    <input type="text" class="form-control input-sm" readonly="readonly" @click="goodsCategoryTree" v-model="goodsCategoryScholarship.categoryName" placeholder="分类名称"/>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label">奖励金比例</div>
                <div class="col-sm-10">
                    <input type="number" class="form-control input-sm" v-model="goodsCategoryScholarship.deductionScholarship" placeholder="奖励金比例"/>
                </div>
            </div>
            <!--<div class="form-group">-->
                <!--<div class="col-sm-2 control-label">是否删除</div>-->
                <!--<div class="col-sm-10">-->
                    <!--<input type="text" class="form-control input-sm" v-model="goodsCategoryScholarship.deleted" placeholder="是否删除（true：是；false：否）"/>-->
                <!--</div>-->
            <!--</div>-->
            <div class="form-group">
                <div class="col-sm-2 control-label"></div>
                <input type="button" class="btn btn-primary  btn-sm" @click="saveOrUpdate" value="确定"/>
                &nbsp;&nbsp;<input type="button" class="btn btn-warning  btn-sm" @click="reload" value="返回"/>
            </div>
        </form>
    </div>
</div>
<!-- 选择部门 -->
<div id="goodsCategoryLayer" style="display: none;padding:10px;">
    <ul id="goodsCategoryTree" class="ztree"></ul>
</div>
<script src="${request.contextPath}/statics/js/modules/goodsCategoryScholarship/goodscategoryscholarship.js?_${.now?long}"></script>
</body>
</html>